import * as types from './mutation-types';

const matutions = {
  [types.SET_CURRENT_USER](state, object) {
    state.currentUser = object
  },
  [types.SET_CURRENT_TENANT](state, object) {
    state.currentTenant = object
  },
  [types.SET_CERTIFICATE_TYPE_ENTRIES](state, array) {
    state.certificateTypeEntries = array
  },
  [types.SET_POLICY_STATUS_ENTRIES](state, array) {
    state.policyStatusEntries = array
  },
  [types.SET_COVERAGE_UNIT_ENTRIES](state, array) {
    state.coverageUnitEntries = array
  },
  [types.SET_PERIOD_UNIT_ENTRIES](state, array) {
    state.periodUnitEntries = array
  },
  [types.SET_SAVE_METHOD_ENTRIES](state, array) {
    state.saveMethodEntries = array
  },
  [types.SET_BENEFICIARY_TYPE_ENTRIES](state, array) {
    state.beneficiaryTypeEntries = array
  },
  [types.SET_PAYMENT_CONTROL_ENTRIES](state, array) {
    state.paymentControlEntries = array
  },
  [types.SET_INSURED_TYPE_ENTRIES](state, array) {
    state.insuredTypeEntries = array
  },
  [types.SET_POLICY_TYPE_ENTRIES](state, array) {
    state.policyTypeEntries = array
  },
  [types.SET_THIRD_PAYMENTS](state, array) {
    state.third_payments = array
  },
  [types.SET_CATEGORY_ENTRIES](state, array) {
    state.categoryEntries = array
  },
  [types.SET_PRODUCT_BRANDS](state, array) {
    state.productBrands = array
  },
  [types.SET_EMPLOYER_ENTRIES](state, array) {
    state.employerEntries = array
  },
  [types.SET_ACTIVED_NODE](state, string) {
    state.activedNode = string
  },
  [types.SET_ORIGIN_URL](state, origin) {
    state.originUrl = origin
  }
}

export default matutions;
